<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<html>
<body>
<ul class="breadcrumb">
  <li><a>按房间打今日工资</a></li>
</ul>
<form id="form" class="form-inline" action="issueRoombiSalary.do" method="post">
<table>
	<tr>
    	<td> <input type="text" class="input-small" placeholder="房间id" name="roomId" value=""></td>
 		<td> <input type="text" class="input-small" placeholder="房币工资" name="roombi" value=""></td>
		<td> <input type="text" class="input-small" placeholder="备注" name="remarks" value=""></td>
 		<td> <button type="submit" class="btn">打钱</button> </td>
		  <input type="hidden" name="target" value="issue"/>
 	</tr>
</table>
</form>

<form class="form-inline" action="issueRoombiSalary.do" method="post">从
  <div class="datepicker input-append">
    <input data-format="yyyy-MM-dd" type="text" value="${beginDate}" name="beginDate"></input>
    <span class="add-on">
      <i data-time-icon="icon-time" data-date-icon="icon-calendar">
      </i>
    </span>
  </div>
  到
  <div class="datepicker input-append">
    <input data-format="yyyy-MM-dd" type="text" value="${endDate}" name="endDate"></input>
    <span class="add-on">
      <i data-time-icon="icon-time" data-date-icon="icon-calendar">
      </i>
    </span>
  </div>
   <input type="hidden" name="target" value="query"/>
  <button type="submit" class="btn">查询</button>
</form>

<table class="table table-bordered">
  <thead>
    <tr>
      <th>打钱时间</th>
      <th>房间信息</th>
      <th>房币</th>
      <th>操作人</th>
      <th>备注</th>
    </tr>
  </thead>
  <tbody>
  <c:forEach var="m" items="${list}">
    <tr>
      <td>${m.createAt}</td>
      <td><tags:room id="${m.roomId}"/></td>
      <td>${m.roombi}</td>
      <td>${m.operator}</td>
      <td>${m.remarks}</td>
    </tr>
  </c:forEach>
  </tbody>
</table>
<tags:page1 page="${page}" pageSize="${pageSize }" total="${total }" url="?beginDate=${beginDate}&endDate=${endDate}&page="/>
</body>
</html>